#include <cstdio>
using namespace std;

int main()
{
    int num = 0;
    while (scanf(" %d", &num) != EOF) {
        int sum = 0, temp;
        for (int i = 0; i < num; i++) {
            scanf(" %d", &temp);
            sum += temp;           
        }
        printf("%d\n", sum);
    }
}